﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Users.SnsConnect
{
	/// <summary>
	/// 社交账号信息
	/// </summary>
	public class SnsAccountInfo : TokenBase
	{
		/// <summary>
		/// 
		/// </summary>
		public SnsAccountInfo() { }

		/// <summary>
		/// 
		/// </summary>
		/// <param name="token"></param>
		public SnsAccountInfo(TokenBase token)
		{
			base.token_type = token.token_type;
			base.access_token = token.access_token;
			base.expires_in = token.expires_in;
			base.remind_in = token.remind_in;
			base.refresh_token = token.refresh_token;
			base.re_expires_in = token.re_expires_in;
		}

		/// <summary>
		/// 社交类型
		/// </summary>
		public SnsType SnsType { get; set; }

		/// <summary>
		/// 社交编号
		/// </summary>
		public string SnsUserId { get; set; }

		/// <summary>
		/// 社交昵称
		/// </summary>
		public string SnsNickname { get; set; }
	}
}
